<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:rich="http://richfaces.org/rich">
	
<ui:composition template="template.xhtml">	
	<ui:define name="title">Exame Físico</ui:define>
	<ui:define name="content">
		<div id="page-heading">
			<div class="icons-telas examefisico"></div>
			<h1>Exame Físico</h1>
		</div>
		<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
			<tr>
				<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
				<th class="topleft"></th>
				<td id="tbl-border-top">&nbsp;</td>
				<th class="topright"></th>
				<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
			</tr>
			<tr>
				<td id="tbl-border-left"></td>
				<td>
				<!--  start content-table-inner -->
				<div id="content-table-inner">
				<h:form>
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
					<tr valign="top">
						<td>			
							<!--  start step-holder -->
							<div id="step-holder">
								<div class="step-no">1</div>
								<div class="step-dark-left"><a href="">Exame Físico</a></div>
								<div class="step-dark-right">&nbsp;</div>
								<!-- div class="step-no-off">2</div-->
								<!--  div class="step-light-left">Salvar</div-->
								<!--div class="step-light-round">&nbsp;</div>
								<div class="clear"></div-->
							</div>
							<!--  end step-holder -->
						
							<!-- start id-form -->
							<table border="0" cellpadding="0" cellspacing="0"  id="id-form">
								<tr>
									<th valign="top">Paciente:* </th>
									<td>
										<rich:select enableManualInput="true" value="#{exameFisicoBean.idPaciente}" binding="#{exameFisicoBean.idPacienteValidation}" id="paciente_nome" required="true" requiredMessage="Campo Obrigatório">
											<f:selectItems value="#{listas.listaPacienteSelect}"></f:selectItems>
										</rich:select>										
									</td>
									<td><h:message for="paciente_nome" errorClass="error-inner"></h:message></td>
								</tr>
								<tr>
									<th valign="top">Data do Exame:* </th>
									<td>
										<rich:calendar datePattern="dd/MM/yyyy" value="#{exameFisicoBean.dataExame}" id="data_exame" required="true" requiredMessage="Campo Obrigatório" validator="#{exameFisicoBean.validateData}" ></rich:calendar>
									</td>
									<td><h:message for="data_exame" errorClass="error-inner"></h:message></td>
								</tr>
							
							<tr>
									<td>
										<fieldset class="fieldsetCampos">
										<legend>Fundo dos Olhos:*</legend>
										<h:selectOneRadio value="#{exameFisicoBean.fundoOlhos}" layout="pageDirection" id="fundoolho" required="true" requiredMessage="Campo Obrigatório">
											<f:selectItem itemValue="1" itemLabel="Normal"></f:selectItem>
											<f:selectItem itemValue="2" itemLabel="Kw I"></f:selectItem>
											<f:selectItem itemValue="3" itemLabel="Kw II"></f:selectItem>
											<f:selectItem itemValue="4" itemLabel="Kw III"></f:selectItem>
											<f:selectItem itemValue="5" itemLabel="Retinopatia Diabética"></f:selectItem>
										</h:selectOneRadio>
										</fieldset>
									</td>
									<td><h:message for="fundoolho" errorClass="error-inner"></h:message></td>
									<td>
										<fieldset class="fieldsetCampos">
										<legend>Ausculta Cardíaca:*</legend>
										<h:selectOneRadio value="#{exameFisicoBean.aucCardiaca}" layout="pageDirection" id="ausculta" required="true" requiredMessage="Campo Obrigatório">
											<f:selectItem itemValue="1" itemLabel="BRNF"></f:selectItem>
											<f:selectItem itemValue="2" itemLabel="Arritmia"></f:selectItem>
											<f:selectItem itemValue="3" itemLabel="Nenhum"></f:selectItem>
											<f:selectItem itemValue="4" itemLabel="Hiperfonese"></f:selectItem>
											<f:selectItem itemValue="5" itemLabel="Hipofonese"></f:selectItem>
											<f:selectItem itemValue="6" itemLabel="Átrito pericárdico"></f:selectItem>
										</h:selectOneRadio>
										</fieldset>										
									</td>
									<td><h:message for="ausculta" errorClass="error-inner"></h:message></td>
								</tr>
								<tr>
									<td>									
										<fieldset class="fieldsetCampos">
										<legend>Sopro:*</legend>
										<h:selectOneRadio value="#{exameFisicoBean.sopro}" layout="pageDirection" id="sopro" required="true" requiredMessage="Campo Obrigatório">
											<f:selectItem itemValue="1" itemLabel="Não"></f:selectItem>
											<f:selectItem itemValue="2" itemLabel="Sistólico"></f:selectItem>
											<f:selectItem itemValue="3" itemLabel="Diastólico"></f:selectItem>
											<f:selectItem itemValue="4" itemLabel="Ambos"></f:selectItem>
										</h:selectOneRadio>
										</fieldset>
									</td>
									<td><h:message for="sopro" errorClass="error-inner"></h:message></td>
									<td>
										<fieldset class="fieldsetCampos">
										<legend>Foco:*</legend>
										<h:selectOneRadio value="#{exameFisicoBean.foco}" layout="pageDirection" id="foco" required="true" requiredMessage="Campo Obrigatório">
											<f:selectItem itemValue="1" itemLabel="Aórtico"></f:selectItem>
											<f:selectItem itemValue="2" itemLabel="Mitral"></f:selectItem>
											<f:selectItem itemValue="3" itemLabel="Pulmonar"></f:selectItem>
											<f:selectItem itemValue="4" itemLabel="Tricuspide"></f:selectItem>
										</h:selectOneRadio>
										</fieldset>
									</td>
									<td><h:message for="foco" errorClass="error-inner"></h:message></td>
								</tr>								
								<tr>
									<td>
										<fieldset class="fieldsetCampos">
										<legend>Membros Inferiores:</legend>
										<h:selectBooleanCheckbox value="#{exameFisicoBean.membroInfNormal}" label="Normal" dir="rtl" ></h:selectBooleanCheckbox><label>Normal</label><br />
										<h:selectBooleanCheckbox value="#{exameFisicoBean.membroInfEdema}" label="Edema" dir="ltr"></h:selectBooleanCheckbox><label>Edema</label><br />
										<h:selectBooleanCheckbox value="#{exameFisicoBean.membroInfVarizes}" label="Varizes"></h:selectBooleanCheckbox><label>Varizes</label><br />
										<h:selectBooleanCheckbox value="#{exameFisicoBean.ausenciaPulso }" label="Ausência de pulso"></h:selectBooleanCheckbox><label>Ausência de pulso</label><br />
										<h:selectBooleanCheckbox value="#{exameFisicoBean.femurais}" label="Femurais"></h:selectBooleanCheckbox><label>Femurais</label><br />
										<h:selectBooleanCheckbox value="#{exameFisicoBean.popliteos}" label="Popliteos"></h:selectBooleanCheckbox><label>Popliteos</label><br />
										<h:selectBooleanCheckbox value="#{exameFisicoBean.tribalPosterior}" label="Tibial Posterior"></h:selectBooleanCheckbox><label>Tibial Posterior</label><br />
										<h:selectBooleanCheckbox value="#{exameFisicoBean.dorsalisPedis}" label="Dorsalis Pedis"></h:selectBooleanCheckbox><label>Dorsalis Pedis</label>
										</fieldset>
									</td>
									<td></td>
									<td>
										<fieldset class="fieldsetCampos">
										<legend>Ausculta pulmonar:</legend>
										<h:selectBooleanCheckbox value="#{exameFisicoBean.aucPulmonarMv}" label="Mv Normal"></h:selectBooleanCheckbox><label>Mv Normal</label><br />
										<h:selectBooleanCheckbox value="#{exameFisicoBean.aucPulmonarRonco}" label="Roncos"></h:selectBooleanCheckbox><label>Roncos</label><br />
										<h:selectBooleanCheckbox value="#{exameFisicoBean.aucPulmonarSibilo}" label="Sibilo"></h:selectBooleanCheckbox><label>Sibilo</label><br />
										</fieldset>
									</td>
									<td></td>
								</tr>							
								<tr>
									<td>
										<fieldset class="fieldsetCampos">
										<legend>Úlceras:*</legend>
										<h:selectOneRadio value="#{exameFisicoBean.ulceras}" layout="pageDirection" id="ulceras" required="true" requiredMessage="Campo Obrigatório">
											<f:selectItem itemValue="1" itemLabel="Não"></f:selectItem>
											<f:selectItem itemValue="2" itemLabel="Arterais"></f:selectItem>
											<f:selectItem itemValue="3" itemLabel="Venosas"></f:selectItem>
											<f:selectItem itemValue="4" itemLabel="Pé Diabético"></f:selectItem>
										</h:selectOneRadio>
										</fieldset>
									</td>
									<td><h:message for="ulceras" errorClass="error-inner"></h:message></td>									
								</tr>
								<tr>
									<th>&nbsp;</th>
									<td valign="top">
										<h:inputHidden value="#{exameFisicoBean.id}"></h:inputHidden>										
										<h:commandButton action="#{exameFisicoBean.Salvar}" styleClass="form-submit" type="submit" value="Salvar"></h:commandButton>
										<a href="examefisico_list.xhtml" class="form-cancel">cancel</a>
									</td>
									<td></td>
								</tr>
							</table>
							<!-- end id-form  -->			
						</td>
						<td></td>
					</tr>
					<tr>
						<td><img src="images/shared/blank.gif" width="695" height="1" alt="blank" /></td>
						<td></td>
					</tr>
				</table>
				</h:form>		 
				<div class="clear"></div>
				</div>
				<!--  end content-table-inner  -->
				</td>
				<td id="tbl-border-right"></td>
			</tr>
			<tr>
				<th class="sized bottomleft"></th>
				<td id="tbl-border-bottom">&nbsp;</td>
				<th class="sized bottomright"></th>
			</tr>
		</table>		
		<div class="clear">&nbsp;</div>		
	</ui:define>
</ui:composition>
</html>